export const serverUrl = "http://localhost:1337";
/* 
  设置token
*/
export const setToken = (key, token) => localStorage.setItem(key, token);

/* 
  获取token
*/
export const getToken = (key) => localStorage.getItem(key);

/* 
  判断是否登录
*/
export const isLogined = (key) => (getToken(key) ? true : false);
